<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018-05-21
 * Time: 10:37
 */

namespace plugins\wechat\validate;


use think\Validate;

class WechatConfigValidate extends Validate {
    protected $rule = [
        'wechat_name' => 'require',
        'wechat_account' => 'require',
        'token' => 'require',
        'appid' => 'require',
        'appsecret' => 'require',
        'encodingaeskey'    => 'require'
    ];
    protected $message = [
        'wechat_name.require' => '公众号名称不能为空',
        'wechat_account.require' => '微信原始账号不能为空',
        'token.require' => 'token不能为空',
        'appid.require' => 'appid不能为空',
        'appsecret.require' => 'appsecret不能为空',
        'encodingaeskey.require' => 'encodingaeskey不能为空'
    ];
}